public class Test {

/*
    public static void main(String[] args) {
        Dog dog=new Dog();

    }
    public static void func(Animal animal){
        animal.eat();
    }
   *//* public static Dog func2(){
        Dog dog=new Dog("旺财",18);
        return dog;
    }*//*
    public static void main3(String[] args) {
        Animal animal=func2();
        animal.eat();
        //animal.bark();
    }
    public static void main2(String[] args) {
        Dog dog=new Dog("www",18);
        func(dog);

    }
    public static void main1(String[] args) {
        Animal animal=new Dog("旺财",16);
        animal.eat();
    }*/
}
